﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.ObjectBuilder;
using Microsoft.Practices.CompositeWeb;
using System.Web;

namespace TestWCSFSitemaps.Payments.Views
{
    public class PayXPresenter : Presenter<IPayXView>
    {
        private IPaymentsController _controller;
        public PayXPresenter([CreateNew] IPaymentsController controller)
        {
            _controller = controller;
            _controller.StartPageFlow();
        }

        public override void OnViewLoaded()
        {
            // TODO: Implement code that will be executed every time the view loads
        }

        public override void OnViewInitialized()
        {
            // TODO: Implement code that will be executed the first time the view loads
        }

        public void GoPayY()
        {
            _controller.GoPayY();
        }

        public void GoPayZ()
        {
            _controller.GoPayZ();
        }
    }
}




